<* include file=$header_file *>
<div class="container" id="cpcontainer">
<script type="text/JavaScript">
	if(parent.$('admincpnav')) parent.$('admincpnav').innerHTML='系统设置';if(parent.$('add2custom')) parent.$('add2custom').innerHTML='';
</script>
<div class="itemtitle">
  <h3>系统设置&nbsp;&nbsp;<input  type="button" value="  刷新当前页 " class="btn" onClick="window.location.reload()"/></h3>
</div>
<form action="/<* $controller *>/op" method="post"  name="press_form" onsubmit="this.submitbutton.disabled=true;">
  <table class="tb tb2 ">
    <* foreach from=$result item=item *>
    <tr>
      <td colspan="2" class="td27"><* $item.variable*>:</td>
    </tr>
    <tr class="noborder">
      <td class="vtop rowform">
            <* if $item.variable=='edu_billboard' *>
      <textarea name="<* $item.variable*>" cols="30" rows="20"><* $item.value*></textarea>
      <* else*>
      <input name="<* $item.variable*>" value="<* $item.value*>" type="text" class="txt"/>
       <*/if*>
      </td>
      <td class="vtop tips2"><* $item.readme*>&nbsp;</td>
    </tr>
    <* /foreach *>
    <tr><th  class="partition" colspan="2">增加新变量</th></tr>
    <tr>
      <td colspan="2" class="td27">变量名（英文）:</td>
    </tr>
    <tr class="noborder">
      <td class="vtop rowform"><input name="add[variable]" value="" type="text" class="txt"   /></td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" class="td27">变量值:</td>
    </tr>
    <tr class="noborder">
      <td class="vtop rowform">
      <input name="add[value]" value="" type="text" class="txt"   />
     
      </td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" class="td27">说明:</td>
    </tr>
    <tr class="noborder">
      <td class="vtop rowform"><input name="add[readme]" value="" type="text" class="txt"   /></td>
      <td class="vtop tips2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2" class="td27"><input name="submitbutton" type="submit" value=" 保存所有 " class="btn"/></td>
    </tr>
  </table>
</form>
<* include file=$bottom_file *>